<table id='topic-list'>
  <tr>
    <th class="main-link">
      {{categoryLink this}}

      <div class='posters'>
      {{#each featured_users}}
        <a href="/users/{{unbound username_lower}}">{{avatar this imageSize="small"}}</a>
      {{/each}}
      </div>
    </th>
    <th class='num posts'>{{i18n posts}}</th>
    <th class='num age'>{{i18n age}}</th>
  </tr>

  {{#if description_excerpt}}
    <tr class="category-description">
      <td colspan="3">
        {{{description_excerpt}}}
      </td>
    </tr>
  {{/if}}

  {{#each topics}}
    <tr {{bindAttr class="archived"}}>
      <td class='main-link'>
        <div class='topic-inset'>
          {{topicStatus topic=this}}
          {{{topicLink this}}}

          {{#if unread}}
            <a href="{{unbound lastReadUrl}}" class='badge unread badge-notification' title='{{i18n topic.unread_posts count="unread"}}'>{{unbound unread}}</a>
          {{/if}}
          {{#if new_posts}}
            <a href="{{unbound lastReadUrl}}" class='badge new-posts badge-notification' title='{{i18n topic.new_posts count="new_posts"}}'>{{unbound new_posts}}</a>
          {{/if}}
          {{#if unseen}}
            <a href="{{unbound lastReadUrl}}" class='badge new-posts badge-notification' title='{{i18n topic.new}}'><i class='icon icon-asterisk'></i></a>
          {{/if}}

          {{#if hasExcerpt}}
            <div class="topic-excerpt">
              {{{excerpt}}}
              {{#if excerptTruncated}}
                {{#unless canClearPin}}<a href="{{lastReadUrl}}">{{i18n read_more}}</a>{{/unless}}
              {{/if}}
              {{#if canClearPin}}
                <a href="#" {{action clearPin this}} title="{{unbound i18n topic.clear_pin.help}}">{{i18n topic.clear_pin.title}}</a>
              {{/if}}
            </div>
          {{/if}}
        </div>
      </td>
      <td class='num posts'><span class='badge-posts'>{{number posts_count}}</span></td>
      <td class='num age'><span {{bindAttr class=":age ageCold"}} title='{{unboundDate created_at}}'>{{{unboundAge created_at}}}</span></td>
    </tr>
  {{/each}}

</table>
<footer class="clearfix">
  <figure title="{{i18n year_desc}}">{{number topics_year}} <figcaption>{{i18n year}}</figcaption></figure>
  <figure title="{{i18n month_desc}}">{{number topics_month}} <figcaption>{{i18n month}}</figcaption></figure>
  <figure title="{{i18n week_desc}}">{{number topics_week}} <figcaption>{{i18n week}}</figcaption></figure>

  {{#if controller.canEdit}}
    <a href='#' {{action editCategory this}} class='btn btn-small'>{{i18n category.edit}}</a>
  {{/if}}

  {{#if moreTopics}}
    <a href='/category/{{unbound slug}}' class='btn btn-small'>{{i18n category.more_posts posts="topic_count"}}</a>
  {{/if}}
</footer>
